
<div class="disablemouserightclick">{site.disablemouserightclick}</div>
<div class="disablechoose">{site.disablechoose}</div>
<div class="disablecopy">{site.disablecopy}</div>
<style>
  .disablemouserightclick,.disablechoose,.disablecopy{
    display: none;
  }
</style>
<script>
    $(function () {
    if ($('.disablemouserightclick').text() == 'True') {
        document.oncontextmenu = new Function("event.returnValue=false;");
    }
    if ($('.disablechoose').text() == 'True') {
        document.onselectstart = new Function('event.returnValue=false;');
    }
    if ($('.disablecopy').text() == 'True') {
        document.oncopy = function () {
            event.returnValue = false;
        }
    }
})
</script>
